FROM moxm/java:1.8-full
#FROM java:8

RUN mkdir -p /api-gateway

WORKDIR /api-gateway

ARG JAR_FILE=target/api-gateway-0.0.1-SNAPSHOT-exec.jar

COPY ${JAR_FILE} app.jar

EXPOSE 8083

ENV TZ=Asia/Shanghai JAVA_OPTS="-Xms128m -Xmx256m -Djava.security.egd=file:/dev/./urandom"

CMD  java $JAVA_OPTS -jar app.jar